package com.yubest.knife4j.controller;

import com.yubest.knife4j.bean.DemoReqDTO;
import com.yubest.knife4j.bean.DemoRespDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/9/6 11:58
 */
@Api(tags = "Hello接口")
@RestController
public class HelloController {

    @ApiOperation(value = "你好API")
    @PostMapping(value = "/hello")
    public DemoRespDTO hello(@RequestBody DemoReqDTO reqDTO) {
        return new DemoRespDTO();
    }
}
